<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录系统</title>
<script type="text/javascript">
	function resetValue(){
		document.getElementById("password").value="";
		document.getElementById("password2").value="";
	}
</script>
</head>
<body background="Images/register.jpg" width="100%" height="100%">
<%@ page import="java.net .*" %>
<%
String message="";
String msg=(String)request.getAttribute("msg");
if(msg!=null){
	message=msg;
}
%>


<div align="center" style="padding-top: 50px;">	
	<h1>武汉理工大学</h1><br/>
	<h1>同舟共济实验室管理系统</h1>
	<form action="/GlabManager/ChangePwServlet" method="post">
	<font color="red" align="center"><%= message%></font>
		<table width="300" height="200"> 
			<tr align="center">
				<td>用户名：</td>
				<td><input type="text" readonly="readonly" value="${userName}" name="userName" id="userName"/></td>
			</tr>
			<tr align="center">
				<td>新密码：</td>
				<td><input type="password" value="${password}" name="password" id="password"/></td>
			</tr>
			<tr align="center">
				<td>确认密码：</td>
				<td><input type="password" value="${password2}" name="password2" id="password2"/></td>
			</tr>
			<tr align="center">
				<td><input type="submit" value="修改"/></td> 
				<td><input type="button" value="重置" onclick="resetValue()"/></td>
			</tr>
		</table>
	</form>
</div>
</body>
</html>